%load_ext pretty_jupyter
# import packages
import pandas as pd

First Section

This is our first section. We use so called Jinja Markdown here. It allows us to combine Markdown with Python variables and makes for a more dynamic report.

We can for example print pandas version such as this: 2.2.3.

# we create a simple dataframe for demonstration purposes
data = pd.DataFrame({"col1": [1, 2, 3, 4], "col2": ["cat1", "cat2", "cat1", "cat2"]})

data.head()
col1 col2
0 1 cat1
1 2 cat2
2 3 cat1
3 4 cat2

Tabset Root

The content of this section will be shown as tabs. This will help us avoid potential scrolling and improve the HTML UI.

First Tab

In the first tab, we can show some graphs or tables. We can output the table like this:

col1 col2
0 1 cat1
1 2 cat2
2 3 cat1
3 4 cat2

Second Tab

In the second tab, we can do the same. Btw maths also works in the tabs.

Not a Tabset

This section will not be tabbed because it has the same level (or higher) as the Tabset Root.